<?php
defined( '_JEXEC' ) or die( 'Restricted Access' );
/**
 * @version     $Id$
 * @package     Virtuemart
 * @subpackage  SemanticWeb Module
 * @copyright   Copyright (C) 2009 Alex Stolz - All rights reserved.
 * @license     GNU/GPL v2
 * SemanticWeb is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.
 
 * SemanticWeb is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 
 * You should have received a copy of the GNU General Public License
 * along with SemanticWeb; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

// enable tooltips
JHTML::_('behavior.tooltip');
// load custom params
$link_text = $params->get('alink');
$link_img = $params->get('aimg');
$fileInfo = pathinfo($_SERVER["PHP_SELF"]);
?>
<p><span class="hasTip" title="<?php echo $link_text ?> :: GoodRelations Feed"><a href="<?php
// print the filename and get the parameter for the hyperlink description
$controller->showRDF()
?>"><?php
if($link_img != NULL) // show image for link
	echo "<img src=\"".$fileInfo['dirname']."/modules/mod_semanticweb/img/$link_img\" alt=\"$link_text\" />";
else // show text for link
	echo $link_text;
?></a></span></p>